package com.sc.article;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sc.article.mapper.ApArticleMapper;
import com.sc.article.pojo.ApArticle;
import com.sc.article.service.ApArticleService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class A {
    @Autowired
    private ApArticleMapper apArticleMapper;

    @Autowired
    private ApArticleService apArticleService;

    @Test
    public void test() {
        List<ApArticle> list = apArticleMapper
                .selectList(new LambdaQueryWrapper<ApArticle>());
        list.forEach(System.out::println);
    }
}
